<template>
	<view class="mine">
		<view class="bottom">
		
		
			<navigator class="shiping" url="/src/pages/Agreement/serviceAgreement">
				<text class="tt">用户协议</text>
				<uni-icons type="right" class="t2"></uni-icons>
			</navigator>
			<navigator class="shiping" url="/src/pages/Agreement/privacyAgreement">
				<text class="tt">隐私政策</text>
				<uni-icons type="right" class="t2"></uni-icons>
			</navigator>
			
			<view class="shiping" @click="onWithDrawClick">
				<text class="tt">注销账号</text>
				<!-- <text class="t2" style="width: 11rpx;height: height: 19rpx;">></text> -->
				<uni-icons type="right" class="t2"></uni-icons>
			</view>
			<view class="shiping">
				<text class="tt">版本号</text>
				<text class="t3">{{ version }}</text>
				<uni-icons type="right" class="t2"></uni-icons>
			</view>
		<!-- 	<view class="shiping">
				<text class="tt">版本号</text>
				<text class="t3">{{ version }}</text>
				<uni-icons type="right" class="t2"></uni-icons>jiu
			</view> -->
			<view class="shiping">
				<text class="tt">模型名称公示</text>
				<text class="t3">百度人脸融合及属性编辑算法</text>
			</view>
			<view class="shiping">
				<text class="tt">模型备案公示</text>
				<text class="t3">网信算备110108645502801240039号</text>
			</view>
			
			<!-- <view class="shiping" @click="onExitClick">
				<text class="tt">退出登陆</text>
			</view> -->
		</view>
		<button class="setBtn" @click="onExitClick">退出登陆</button>
		
	
		<view style="position: fixed;bottom:115rpx;font-size:20rpx;text-align: center;left:0px;right: 0px;color:#999"> ICP备案号:鄂ICP备2025097094号-2A></view>
		<view style="position: fixed;bottom:80rpx;font-size:20rpx;text-align: center;left:0px;right: 0px;color:#999">All Rights Reserved By 武汉市易活电子商务有限责任公司</view>
	
	</view>
</template>

<script>
	import {
		version as request_version
	} from '@/src/utils/config.js';
	export default {
		data() {
			return {
				version: '',
			};
		},
		onLoad() {
			this.initVersion();
		},
		methods:{
			initVersion() {
				let _this = this;
				// #ifdef APP-PLUS
				plus.runtime.getProperty(plus.runtime.appid, function(widgetInfo) {
					_this.version = `${plus.runtime.version}_${widgetInfo.version}_${request_version}`;
				});
				// #endif
				// #ifndef APP-PLUS
				_this.version = `${request_version}`;
				// #endif
			},
			onExitClick() {
				getApp().globalData.userData = null;
				uni.$emit('userUpdate', {
					userData: null
				})
				uni.removeStorageSync('jwt_token');
				this.$showToast('退出登陆成功');
			},
			onWithDrawClick() {
				getApp().globalData.userData = null;
				uni.$emit('userUpdate', {
					userData: null
				})
				uni.removeStorageSync('jwt_token');
				this.$showToast('注销账号成功');
			},
		}
	}
</script>

<style lang="scss">
@import "Setting.scss";
</style>
